//
//  E7Layer.h
//  E7_ENGINE
//
//  Created by cc on 12-2-28.
//  Copyright (c) 2012年 PalmGame. All rights reserved.
//

#ifndef E7_ENGINE_E7Layer_h
#define E7_ENGINE_E7Layer_h

#include "E7BaseDefine.h"

class CE7Layer : public CCLayer
{
protected:
    typedef enum
    {
        LS_RESET = 0,
        LS_SLEEP,
        LS_START,
        LS_STOP,
    } eLayerStep ;

public:
    CE7Layer() ;
    virtual ~CE7Layer() ;

    virtual bool Loop() ;

    virtual void DialogYES() ;
    virtual void DialogNO() ;
    virtual void DialogOK() ;
public:
//	virtual bool ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent);

	virtual void ccTouchesBegan(CCSet *pTouches, CCEvent *pEvent);
	virtual void ccTouchesMoved(CCSet *pTouches, CCEvent *pEvent);
	virtual void ccTouchesEnded(CCSet *pTouches, CCEvent *pEvent);
	virtual void ccTouchesCancelled(CCSet *pTouches, CCEvent *pEvent);

public:
    void SetStep(eLayerStep step) ; // { m_eStep = step ; }
    eLayerStep GetStep() ; // { return m_eStep ; }
protected:
    bool       m_bIsAnimation ;

private:
    eLayerStep m_eStep ;
} ;


#endif
